/*
Theme Name: Contraluz
Theme URI: http://contraluz.malhumorado.es
Author: Malhumorado
Author URI: http://www.malhumorado.es/
Description: Theme for a fotographer's wordpress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: malhumorado
Text Domain: contraluz

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =Notes
--------------------------------------------------------------
This stylesheet uses rem values with a pixel fallback. The rem
values (and line heights) are calculated using two variables:

$rembase:     14;
$line-height: 24;

---------- Examples

* Use a pixel value with a rem fallback for font-size, padding, margins, etc.
	padding: 5px 0;
	padding: 0.357142857rem 0; (5 / $rembase)

* Set a font-size and then set a line-height based on the font-size
	font-size: 16px
	font-size: 1.142857143rem; (16 / $rembase)
	line-height: 1.5; ($line-height / 16)

---------- Vertical spacing

Vertical spacing between most elements should use 24px or 48px
to maintain vertical rhythm:

.my-new-div {
	margin: 24px 0;
	margin: 1.714285714rem 0; ( 24 / $rembase )
}

---------- Further reading

http://snook.ca/archives/html_and_css/font-size-with-rem
http://blog.typekit.com/2011/11/09/type-study-sizing-the-legible-letter/


/*******************
 #      RESET      #
 *******************/
 
 * { 
	margin: 0;
	padding: 0;
	
	-moz-box-sizing: border-box; 
	-webkit-box-sizing: border-box; 
	box-sizing: border-box;
 }
	
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, button {
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}

html {
	height: 100%;
}

body {
	min-height: 98.00%;	
}

body {
	line-height: 1;	
}	

ol, ul{
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

caption, th, td {
	font-weight: normal;
	text-align: left;
}

h1,h2,h3,h4,h5,h6 {
	color: #FFF;
	text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);	
}

h1{
	font-size: 120%;
	margin: 0.5rem 0;
}
h2{
	font-size: 115%;
	margin: 0.45rem 0;
}
h3{
	font-size: 110%;
	margin: 0.40rem 0;
}
h4{
	font-size: 105%;
	margin: 0.35rem 0;
}
h5{
	font-size: 100%;
	margin: 0.30rem 0;
}
h6{
	font-size: 90%;
	margin: 0.25rem 0;
}

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

a:focus {
	outline: thin dotted;
}

article,aside,details,figcaption,figure,footer,header,hgroup,nav,section {
	display: block;
}

audio,canvas,video {
	display: inline-block;
}

audio:not([controls]) {
	display: none;
}

del {
	color: #333;
}

ins {
	background: #fff9c0;
	text-decoration: none;
}

hr {
	background-color: rgba(255, 255, 255, 0.4);
	border: 0;
	height: 1px;
	margin: 20px 0;
	margin: 1.428571428571429rem 0;
	box-shadow: 0px 0px 7px 3px rgba(255, 255, 255, 0.4);
}

sub,sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

small {
	font-size: smaller;
}

img {
	border: 0;
	-ms-interpolation-mode: bicubic;
}

p {
	margin: 1rem 0.1rem;
	text-align: justify;
}

/* Forms */

input {
	outline: none;
}


:-ms-input-placeholder{
	color:#CCC;
}

::-webkit-input-placeholder {
   color: #CCC;
}

:-moz-placeholder {  
   color: #CCC;  
}

/* Make sure videos and embeds fit their containers */
embed,iframe,object,video {
	max-width: 100%;
}

/* Align && Clear */
.alignleft {
	float: left;
}
.alignright {
	float: right;
}

.textcenter{
	text-align: center;
}
.textjustify{
	text-align: justify;
}

.clear {
	clear: both;
}

.clearright{
	clear: right;
}

.clearleft{
	clear: left;
}

.topright{
	margin: 0 0 6px 6px;
}

.topcenter{
	margin: 0 0 6px 0;
}

.topleft{
	margin: 0 6px 6px 0;
}

.bottomright{
	margin: 6px 0 0 6px;
}

.bottomcenter{
	margin: 6px 0 0 0;
}

.bottomleft{
	margin: 6px 6px 0 0;
}

.toprightwide{
	margin: 0 0 10px 15px;
}

.topcenterwide{
	margin: 0 0 15px 0;
}

.topleftwide{
	margin: 0 15px 10px 0;
}

.bottomrightwide{
	margin: 10px 0 0 15px;
}

.bottomcenterwide{
	margin: 15px 0 0 0;
}

.bottomleftwide{
	margin: 10px 15px 0 0;
}

.hide{
	display: none;
}

/****************************
 #      MAIN STRUCTURE      #
 ****************************/

html {
	font-size: 87.5%;
}

body {
	font-size: 14px;
	font-size: 1rem;
	font-family: Helvetica, Arial, sans-serif;
	text-rendering: optimizeLegibility;
	color: #FFF;
	
	background-color: transparent;
	background-image: url("img/bg/zenbg-1.png"), url("img/bg/zenbg-2.png");
	background-repeat: repeat-x, repeat;
	
	line-height: 130%;
}

.textbox, article{
	background-color: rgba(255, 255, 255, 0.15);
	padding: 1rem 1rem 0.4rem 1rem;
	border-radius: 1rem;
	box-shadow: 0px 0px 5px 3px rgba(255, 255, 255, 0.4);	
}

a {
	color: #FFFF00;
	color: rgba(255, 255, 0, 0.95);
	text-decoration: none;
	text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);
}

a:hover {
	color: #EAEA00;
	color: rgba(255, 255, 0, 0.85);
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

a.white {
	color: #FFF;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);
}

a.white:hover {
	color: #FFF;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

/************************
 #      MAIN ROLES      #
 ************************/

[role=page] {
	height: 100%;
	width: 80%;	
	max-width: 1400px;
	min-width: 860px;
	margin: 0 auto;
	
	
	position: relative;
}

[role=header]{
	margin: 1rem 0;	
}

[role=header] header {
	float: left;
}

[role=header] div:last-child{
	clear: both;
}

[role=header] [role=search] {
	float: right;
}

[role=content] {
	height: 100%;
	position: relative;
}

[role=sidebar] {
	height: 100%;
	position: relative;
}

[role=footer] {
	margin: 1rem 0 1.2rem 0;
	position: relative;
	
	color: rgba(255,255,255,0.6);
}

[role=footer] ul{
	display: inline;
}

[role=footer] ul > li{
	display: inline;
	padding: 0 10px;
	font-size: 85%;
}

[role=footer] ul > li:first-child{	
	border-left: 0;
	padding: 0 10px 0 16px;
}

[role=footer] ul > li:last-child{
	padding: 0  0 0 16px;
}

[role=footer] ul#footer_links li{
	background-image: url('img/icon/stars.png');
	background-repeat: no-repeat;
	background-position: 0 -15px;
}
	

/**********************
 #      404 PAGE      #
 **********************/

[page='404'] div{
	width: 80%;
	margin: 5% auto;
}

[page='404'] div p{
	text-align: center;
	margin: 0;
}

[page='404'] div p span{
	font-size: 80%;
}

[page='404'] div h1{
	font-size: 300%;
	text-align: center;
}

[page='404'] div h2{
	font-size: 150%;
	text-align: center;
}

/************************
 #      SEARCH BOX      #
 ************************/

[role=search] input[type=text]{
	width: 150px;
	width: 10.71428571428571rem;
	
	color: #FFF;
	
	border: 0;
	border-radius: 4px;
	
	background: rgba(255, 255, 255, 0.2);
	
	padding: 2px 5px;
	padding: 0.1428571428571429rem 0.3571428571428571rem;
	
	font-size: 12px;
	font-size: 0.8571428571428571rem;	
	
	text-align: center;
}

[role=search] input[type=text]:hover, [role=search] input[type=text]:focus{
	box-shadow: 0px 0px 7px 3px rgba(255, 255, 255, 0.6);
	background: -moz-radial-gradient(center, ellipse cover, rgba(125,185,232,0) 0%, rgba(255,255,255,0.4) 100%); /* FF3.6+ */
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(125,185,232,0.4)), color-stop(100%,rgba(255,255,255,0.4))); /* Chrome,Safari4+ */
	background: -webkit-radial-gradient(center, ellipse cover, rgba(125,185,232,0) 0%,rgba(255,255,255,0.4) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-radial-gradient(center, ellipse cover, rgba(125,185,232,0) 0%,rgba(255,255,255,0.4) 100%); /* Opera 12+ */
	background: -ms-radial-gradient(center, ellipse cover, rgba(125,185,232,0) 0%,rgba(255,255,255,0.4) 100%); /* IE10+ */
	background: radial-gradient(ellipse at center, rgba(125,185,232,0) 0%,rgba(255,255,255,0.4) 100%); /* W3C */	
}

.search_results{
	text-align: center;
	font-size: 90%;
	padding: 0.3rem;
	text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);
	margin: 1.2rem auto 0.2rem auto; 
}

.search_results span.search_term{
	font-weight: bold;
	text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.8);
}

/************************
 #      BOX STYLES      #
 ************************/

.box {
	display: inline-block;
	padding: 12px 10px;
	
	color: #00AA77;
	font-weight: bold;
	text-align: center;
	text-shadow: 3px 3px 2px rgba(0, 0, 0, 1);
		
	background-color: transparent;	
	background-image: url("img/assets/grey.png");
	background-repeat: no-repeat;
	background-position: center 0;
	background-size: 100% 300%;
	
	border: 0;
	
	line-height: 110%;
	
	cursor: default;
}

.box.big {
	padding: 13px 14px;
	font-size: 155%;
	-webkit-text-size-adjust: 155%;
	-ms-text-size-adjust: 155%;
}

.box.small {	
	padding: 9px 8px;
	font-size: 75%;
	-webkit-text-size-adjust: 75%;
	-ms-text-size-adjust: 75%;
}

a{
	cursor: pointer;		
}

a.box, a.box.big, a.box.small{
	color: #EAEA00;
	color: rgba(255, 255, 0, 0.95);	
	text-shadow: 3px 3px 3px rgba(0, 0, 0, 1);
	cursor: pointer;
}

a.box:hover, a.box.big:hover, a.box.small:hover{
	color: #EAEA00;	
	color: rgba(255, 255, 0, 0.85);
	text-shadow: 2px 2px 2px 5px rgba(0, 0, 0, 1);
	
	background-position: center 50% !important;
}

.box.title{
	color: #229CFF !important;
}

a.box.title{
	color: #EAEA00 !important;
}
a.box.title:hover{
	color: #229CFF !important;	
}

.box.hover:hover{
	background-position: center bottom;	
}

.box.white{
	color: #FFF;
}

.box.soft{
	font-weight: normal;
}

/************************
 #      BREADCRUMB      #
 ************************/
 
/** DEFAULT BREADCRUMBS **/

ul.breadcrumbs, ul.breadcrumbs > li{
	display: inline;
}

ul.breadcrumbs > li{	
	background-image: url('img/icon/yellow-arrow.png');
	background-position: 8px center;
	background-repeat: no-repeat;
	
	padding-left: 18px;	
}
ul.breadcrumbs > li:first-child{
	background-image: none;
	padding-left: 0;
}

/************************
 #      LOADER IMG      #
 ************************/

img.post_loader_devices{
	display: none;
}

img.post_loader_desktop{
	display: inline;
}

/***********************
 #      ADMIN BAR      #
 ***********************/

#wpadminbar #adminbarsearch{
	display: none;
}

/************************
 #      USER MODAL      #
 ************************/

div#user_modal{
	position: fixed;
	bottom: 0;
	right: 10%;	
	z-index: 9999;
}	

div#user_modal a{
	background-color: rgba(36,36,36, 0.95);	
	box-shadow: 0px 0px 18px 9px rgba(255, 255, 255, 0.4);
	
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
	
	padding: 8px 10px 8px 8px;		
	
	text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.15);	
	color: rgba(255, 255, 255, 0.85);
	
	font-size: 0.85rem;
	line-height: 23px;
	
	margin-left: 8px;
}
div#user_modal a:hover{
	background-color: rgba(36,36,36, 1);
	box-shadow: 0px 0px 24px 12px rgba(255, 255, 255, 0.4);
	text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.25);
		
	color: rgba(255, 255, 0, 0.85);
}


div#user_modal a span{
	background-image: url("img/icon/stars.png");	
	background-repeat: no-repeat;
	background-position: 0 1px;		
	
	padding-left: 19px;
}
div#user_modal a:hover span{
	background-position: 0 -15px;
}


/*##################################*/ 
/*####  BIG RESOLUTION TABLETS  ####*/
/*##################################*/
@media screen and (max-width: 960px)
{
	[role=page] {
		width: 90%;
		min-width: 720px;
	}	
	
	#wpadminbar #wp-admin-bar-wp-logo{
		display: none;
	}	
	
	div#user_modal{
		right: 7%;
	}
}

/*##################################*/ 
/*#### SMALL RESOLUTION TABLETS ####*/
/*##################################*/
@media screen and (max-width: 758px)
{

	body {		
		background-color: #008860;
		background-image: none;

		/* IE10 Consumer Preview */ 
		background-image: -ms-linear-gradient(top, #007BDF 0%, #008860 100%);
		
		/* Mozilla Firefox */ 
		background-image: -moz-linear-gradient(top, #007BDF 0%, #008860 100%);
		
		/* Opera */ 
		background-image: -o-linear-gradient(top, #007BDF 0%, #008860 100%);
		
		/* Webkit (Safari/Chrome 10) */ 
		background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #007BDF), color-stop(1, #008860));
		
		/* Webkit (Chrome 11+) */ 
		background-image: -webkit-linear-gradient(top, #007BDF 0%, #008860 100%);
		
		/* W3C Markup, IE10 Release Preview */ 
		background-image: linear-gradient(to bottom, #007BDF 0%, #008860 100%);
		
		background-repeat: repeat-x;
	}	
	
	[role=page] {
		width: 95%;
		min-width: 514px;
	}
	
	[page='404'] div{
		width: 100%;
	}	
	
	a.box:hover, a.box.big:hover, a.box.small:hover{		
		background-position: center 0 !important;
	}
	
	img.post_loader_devices{
		display: inline;
	}
	
	img.post_loader_desktop{
		display: none;
	}	
	
	#wpadminbar {
	    min-width: 0!important;
	}
	
		div#user_modal{
		right: 5%;
	}
}

/*##################################*/ 
/*#### MOBILE PHONES RESOLUTION ####*/
/*##################################*/
@media screen and (min-width: 525px)
{
	.hide_for_tablet{
		display: none!important;
	}
}

@media screen and (max-width: 524px)
{	
	.hide_for_mobile {
		display: none!important;
	}
	
	.m_block{
		display: block;
		float: none;
		margin: 0.4rem auto;
	}
	
	.m_textcenter{
		text-align: center;
	}
	
	p{
		text-align: left;
	}
	
	[role=page] {
		width: 98%;
		min-width: 300px;
	}
	
	[role=header] {
		margin: 0;
	}
	
	[role=header] > *, [role=header] > header > * {
		margin: 0.5rem 0;
		display: block;
		width: 100%;
		float: none;	
	}
	
	[role=header] header {
		float: none;		
	}
	
	[role=header] [role=search] {
		float: none;
		width: 80%;
		max-width: 270px;
		margin: 0 auto;
	}
	
	[role=footer] {
		margin: 0;
	}
	
	[role=footer] ul, [role=footer] ul.alignleft, [role=footer] ul.alignright{
		display: block;
		float: none;
		margin: 0 auto 0 auto;
	}
	
	[role=footer] ul > li, [role=footer] ul > li:first-child, [role=footer] ul > li:last-child{
		display: block;
		text-align: center;
		padding: 0;
		margin: 0 auto;
		padding: 0;		
		font-size: 70%;
		border: 0;	
		line-height: 0;
	}

	[role=footer] ul > li > a{
		display: block;
		margin: 0.8rem 0;
		padding: 0.8rem 0;
		font-size: 130%;

		line-height: 130%;				
	}
	
	[role=footer] ul#footer_links li{
		background-image: none;
		background-repeat: no-repeat;
		background-position: 0 -15px;
	}		
	
	.box_for_mobile{
		background-color: transparent;	
		background-image: url("img/assets/grey.png");
		background-repeat: no-repeat;
		background-position: center 0;
		background-size: 100% 300%;	
	}	
	
	[page='404'] div{
		margin: 15% auto 10% auto;
	}
	
	[page='404'] div h1{
		margin: 0 0 2rem 0;
	}
	
	[page='404'] div h2{
		margin: 0;
	}	
	
	[role=search] input[type=text]{
		width: 98%;			
		border-radius: 8px;		
		padding: 0.4rem 0.2rem;
	}
	
	[role=search] input[type=text]:hover, [role=search] input[type=text]:focus{
		box-shadow: none;		
		background: rgba(255, 255, 255, 0.2);	
	}
	
	.search_results{
		width: 97%;		
	}
	
	.more-link{
		display:none;
	}	

	#wpadminbar .ab-top-secondary{
	    display:none;
	}	
}

/***********************************/

pre.warning, pre.xdebug-var-dump{
	color: #000;
	background-color: rgba(255, 255, 255, 0.8);
	padding: 3px 14px;
	margin: 12px 4px;
	border: 1px dotted rgba(0, 0, 0, 0.85);
	border-radius: 10px;
	box-shadow: 0px 0px 7px 10px rgba(255, 255, 255, 0.8);
	text-shadow: 2px 2px 2px rgba(255, 255, 255, 1);
}

pre.warning{
	color: rgba(255, 0, 0, 1);
	border: 1px dotted rgba(255, 0, 0, 0.85);
	background-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0px 0px 7px 10px rgba(255, 255, 255, 0.6);
}

/*

[role=page] {
	border: 1px solid red;
}

[role=header] {	
	border: 1px solid yellow;
}

[role=sidebar] {		
	border: 1px solid white;
}

[role=content]{
	border: 1px solid #FFF;
}

[role=footer]{
 	border: 1px solid yellow;
}

*/
